package com.spice.service.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.spice.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("authorization")
@ApiModel(description = "授权信息")
public class Authorization extends BaseEntity {
    @ApiModelProperty(value = "用户id",example = "123456")
    private String userId;

    @ApiModelProperty(value = "权限",example = "shape_desc:view")
    private String permission;

    @Override
    public Authorization cleanup() {
        super.cleanup();
        return this;
    }
}
